package com.os.meituan.repository;


import com.os.meituan.model.pomodel.sec.T_SYS_Log;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created by Administrator on 2017/6/14.
 */
public interface SYS_LogRepository extends PagingAndSortingRepository<T_SYS_Log, String> {
    @Transactional
    void deleteAllByIdIn(List<String> ids);

    @Modifying
    @Transactional
    @Query("delete from T_SYS_Log")
    void clear();
}
